import request from '@/utils/request'

// 查询参保人员-医保报销记录列表
export function listMedicalReimbursement(query) {
  return request({
    url: '/system/reimbursementRecords/list',
    method: 'get',
    params: query
  })
}

// 获取参保人员-医保报销记录详细信息
export function getMedicalunitInfo() {
  return request({
    url: '/system/medicalunit/info',
    method: 'get'
  })
}

// 新增参保人员-医保报销记录
export function addMedicalReimbursement(data) {
  return request({
    url: '/system/reimbursementRecords',
    method: 'post',
    data: data
  })
}

// 修改参保人员-医保报销记录
export function updateMedicalReimbursement(data) {
  return request({
    url: '/system/reimbursementRecords',
    method: 'put',
    data: data
  })
}

// 删除参保人员-医保报销记录
export function delMedicalReimbursement(id) {
  return request({
    url: '/system/reimbursementRecords/' + id,
    method: 'delete'
  })
}

// 获取医疗单位统计数据
export function getMedicalUnitStats() {
  return request({
    url: '/system/reimbursementRecords/stats',
    method: 'get'
  })
}
